import request from '@/utils/request'

// 查询人事档案列表
export function listPersonnelInfo(query) {
  return request({
    url: '/hr/personnelInfo/list',
    method: 'get',
    params: query
  })
}

// 查询人事档案详细
export function getPersonnelInfo(id) {
  return request({
    url: '/hr/personnelInfo/' + id,
    method: 'get'
  })
}

// 新增人事档案
export function addPersonnelInfo(data) {
  return request({
    url: '/hr/personnelInfo',
    method: 'post',
    data: data
  })
}

// 修改人事档案
export function updatePersonnelInfo(data) {
  return request({
    url: '/hr/personnelInfo',
    method: 'put',
    data: data
  })
}

// 删除人事档案
export function delPersonnelInfo(id) {
  return request({
    url: '/hr/personnelInfo/' + id,
    method: 'delete'
  })
}
